wayland: Emit GdkKeymap::state-changed when appropriate
authorMatthias Clasen <mclasen@redhat.com>
Fri, 22 Mar 2013 22:34:44 +0000 (18:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 Mar 2013 22:34:44 +0000 (18:34 -0400)
This makes the caps lock warning in password entries work.

gdk/wayland/gdkdevice-wayland.c

index f512888ca3566cd3c4f4e95b10a3f11a09c2a816..f485269d9003bb615bf8a610de794a50d074bd6a 100644 (file)
@@ -1075,6 +1075,8 @@ keyboard_handle_modifiers (void               *data,
   device->modifiers = mods_depressed | mods_latched | mods_locked;
 
   xkb_state_update_mask (xkb_state, mods_depressed, mods_latched, mods_locked, group, 0, 0);
+
+  g_signal_emit_by_name (keymap, "state-changed");
 }
 
 static const struct wl_pointer_listener pointer_listener = {